package com.dave.dubbo.nacos.provider.service.impl;

import com.dave.dubbo.provider.api.DemoService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * @author wangwj
 * @version 1.0
 * @date 2022/2/9
 */
@Slf4j
@Component
@DubboService
public class DemoServiceImpl implements DemoService {

    @Override
    public Map<String, String> sayMap(Map<String, String> person) {
        log.info("sayMap 收到消息" + System.currentTimeMillis());
        return person;
    }

    @Override
    public Map sayMap2(Map person) {
        log.info("sayMap2 收到消息" + System.currentTimeMillis());
        return person;
    }
}
